package com.ims.core.bas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ims.common.annotation.Excel;
import com.ims.common.core.domain.BaseEntity;

/**
 * 公司对象 bas_company
 *
 * @author IMS
 * @date 2024-03-03
 */
public class BasCompany extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String companycode;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyname;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Long isenable;

    /** 打印抬头 */
    @Excel(name = "打印抬头")
    private String printtitle;

    /** WMS前缀 */
    @Excel(name = "WMS前缀")
    private String wmsbillprefix;

    /** 添加人 */
    @Excel(name = "添加人")
    private String addcname;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adddatetime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifycname;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifydatetime;

    public void setCompanycode(String companycode)
    {
        this.companycode = companycode;
    }

    public String getCompanycode()
    {
        return companycode;
    }
    public void setCompanyname(String companyname)
    {
        this.companyname = companyname;
    }

    public String getCompanyname()
    {
        return companyname;
    }
    public void setIsenable(Long isenable)
    {
        this.isenable = isenable;
    }

    public Long getIsenable()
    {
        return isenable;
    }
    public void setPrinttitle(String printtitle)
    {
        this.printtitle = printtitle;
    }

    public String getPrinttitle()
    {
        return printtitle;
    }
    public void setWmsbillprefix(String wmsbillprefix)
    {
        this.wmsbillprefix = wmsbillprefix;
    }

    public String getWmsbillprefix()
    {
        return wmsbillprefix;
    }
    public void setAddcname(String addcname)
    {
        this.addcname = addcname;
    }

    public String getAddcname()
    {
        return addcname;
    }
    public void setAdddatetime(Date adddatetime)
    {
        this.adddatetime = adddatetime;
    }

    public Date getAdddatetime()
    {
        return adddatetime;
    }
    public void setModifycname(String modifycname)
    {
        this.modifycname = modifycname;
    }

    public String getModifycname()
    {
        return modifycname;
    }
    public void setModifydatetime(Date modifydatetime)
    {
        this.modifydatetime = modifydatetime;
    }

    public Date getModifydatetime()
    {
        return modifydatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("companycode", getCompanycode())
            .append("companyname", getCompanyname())
            .append("isenable", getIsenable())
            .append("remark", getRemark())
            .append("printtitle", getPrinttitle())
            .append("wmsbillprefix", getWmsbillprefix())
            .append("addcname", getAddcname())
            .append("adddatetime", getAdddatetime())
            .append("modifycname", getModifycname())
            .append("modifydatetime", getModifydatetime())
            .toString();
    }
}
